package com.palfund.mvp.home.contract;

import com.palfund.mvp.base.BasePresenter;
import com.palfund.mvp.base.BaseView;
import com.palfund.mvp.home.model.LoginListener;

/**
 * Created by clvc on 2017/8/17.
 * 真正的速度是看不见的 !
 * Today is today , we will go !
 */

public interface LoginContract {
    interface Presenter extends BasePresenter {
        void login();
    }

    interface View extends BaseView<Presenter> {
        String getName();

        String getPassword();

        void showProgress();

        void hideProgress();

        void reset();

        void success();

        void failed();
    }

    interface Model {
        void login(String name, String password, LoginListener listener);
    }

}
